//REQUIRED CLASS
package project2;

import java.util.ArrayList;

import project1.*;

public class Rule
{
	private SimplePredicate simplepredicate;
	private ArrayList<Predicate> pred_list;
	Rule(SimplePredicate simplepredicate, ArrayList<Predicate> pred_list){
		this.pred_list = pred_list;
		this.simplepredicate = simplepredicate;
	}
	public String toString(){
		return simplepredicate.toString()+":-"+pred_list.toString().replaceAll("\\[|\\]","")+".";
	}
}
